<template>
    <h2>我是About的组件</h2>
</template>

<script>
export default {
    name: "About",
    beforeDestroy() {
        console.log("About组件销毁")
    },
    // 进入该组件被调用
    beforeRouteEnter(to, from, next) {

    },
    // 离开该组件时被调用
    beforeRouteLeave(to, from, next) {

    },
    beforeRouteUpdate() {
        
    }
}
</script>